(setq save-place-file "~/.emacs.d/files/saveplace") ;; keep my ~/ clean
(setq-default save-place t)                   ;; activate it for all buffers
(require 'saveplace)                          ;; get the package

(setq savehist-additional-variables    ;; also save...
  '(search-ring regexp-search-ring)    ;; ... my search entries
  savehist-file "~/.emacs.d/files/savehist") ;; keep my home clean
(savehist-mode t)                      ;; do customization before activate
